﻿<helpers:FullScreenWindow x:Class="VrPlayer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:converters="clr-namespace:VrPlayer.Helpers.Converters;assembly=VrPlayer.Helpers"
        xmlns:views="clr-namespace:VrPlayer.Views" 
        xmlns:viewPorts="clr-namespace:VrPlayer.Views.ViewPorts"
        xmlns:helpers="clr-namespace:VrPlayer.Helpers;assembly=VrPlayer.Helpers"
        Icon="../vrplayer.ico"
        Title="VR Player"
        Background="Black"
        KeyDown="Window_KeyDown"
        AllowDrop="true"
        Drop="Window_OnDrop"
        Closed="MainWindow_OnClosed">
    <helpers:FullScreenWindow.Resources>
        <converters:InvertBooleanToVisibilityConverter x:Key="InvertBooleanToVisibility"/>
    </helpers:FullScreenWindow.Resources>
    <DockPanel>
        <Grid DockPanel.Dock="Top" Visibility="{Binding Path=State.TrackerPlugin.Content.IsActive, Converter={StaticResource InvertBooleanToVisibility}}">
            <views:Menu />
        </Grid>
        <Grid DockPanel.Dock="Bottom" Visibility="{Binding Path=State.TrackerPlugin.Content.IsActive, Converter={StaticResource InvertBooleanToVisibility}}">
            <views:ControlPanel />
        </Grid>
        <viewPorts:MainViewPort />
    </DockPanel>
</helpers:FullScreenWindow>